cmake_minimum_required(VERSION 3.10)

# Set the project name
project(MyCProject)

# Specify the C standard
set(CMAKE_C_STANDARD 99)

# Find all .c files in the source directory
file(GLOB_RECURSE SOURCE_FILES "source/*.c")

# Add all the source files to the executable
add_executable(MyCProject ${SOURCE_FILES})

# Include directories. Add more if you have multiple header directories
include_directories(include)

# Link the math library
target_link_libraries(MyCProject m)